📒 Notes for Lecture 03: Styling & Script Alert
-
We again used the basic HTML structure with
<!DOCTYPE html>
,<html>
, and<head>
. -
Linked an external CSS file using:
<link rel="stylesheet" href="style.css">
-
CSS file included:
background-color: red;
for the whole pagecolor: purple;
to style text
-
Inside
<body>
, we wrote: "content" -
Added a JS file using:
<script src="script.js"></script>
-
The
script.js
file displays an alert:alert("Hello world!");
Hinglish: Lecture 3 mein humne pehli baar CSS aur JS use kiya.
CSS file se page ka background red aur text purple ho gaya.
JavaScript file <script>
se link ki gayi, jisme ek simple
alert("Hello world!")
likha tha.
Ye alert page load hone par popup karta hai.
💻 Live Code Preview
If the iframe doesn’t load, click here to open Lecture 03 code in a new tab.